package com.eedi.framework.logger.enmus;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@AllArgsConstructor
@ToString
public enum SysLogTypeEnum implements BaseEnum<Integer, String> {

    ACCESS_LOG(1, "访问日志"),
    OPERATER_LOG(2, "操作日志"),
    ;

    /**
     * 日志类型
     */
    private final Integer type;

    private final String desc;

    @Override
    public Integer getCode() {
        return this.type;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public String title() {
        return "登录日志的类型";
    }
}
